home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / ecu / funckeymap-3 < prev   
Text File  |  1995-07-14  |  29KB  |  780 lines

  1. #+------------------------------------------------------------------------
  2. # ECU 3.30 funckeymap
  3. #
  4. # This file contains mapping information to convert non-ANSI
  5. # keyboard function keys to an internal ECU function key
  6. # representation.
  7. # The format of an entry is shown below in the 'ansilike' example (used
  8. # to ansilike ECU from the console by defining an ansi terminal type
  9. # nevertheless equivalent to ansi).
  10. # The first line(s) in a terminal keyboard description begin in
  11. # column 1 and contain the terminal types (a la $TERM) for which
  12. # the keyboard description are valid.  The example entry contains
  13. # several references to terminal types containing the substring
  14. # 'ansi'.  These are included only as an example of one keyboard
  15. # description servicing multiple terminal types.
  16. # ECU determines whether a terminal meets the ansi vs.  ANSI
  17. # distinction by searching for 'ansi' in the $TERM environment
  18. # variable (without regard to case: 'AnSi' will match as well as
  19. # 'ansi').  If your keyboard matches the ANSI specification even
  20. # though your $TERM environment variable does not contain 'ansi'
  21. # (such as 'sun'), then you may add the terminal type to the 'ansilike'
  22. # entry rather than create a separate entry.
  23. # Following the "first lines" are key definition entries, each
  24. # preceded by at least one tab or space.  Each entry is composed of
  25. # three fields delimited by commas.  The first field of an entry is
  26. # the internal ECU function key name and must be chosen from the
  27. # following strings (with no regard to case): "F1", "F2", "F3",
  28. # "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "Home",
  29. # "End", "PgUp", "PgDn", "CUP", "CUL", "CU5", "CUR" and "CUD" The
  30. # second field contains the name of the key as it appears on the
  31. # non-ANSI keyboard (such as "Send" for End on the Wyse 60).  The
  32. # third field is a description of the character sequence generated
  33. # by the non-ANSI keyboard when the chosen key is pressed; it is a
  34. # string of one or more tokens separated by spaces or tabs.
  35. # The tokens are described in full in the ECU manual sections titled
  36. # "Function Key Recognition" and "Function Key Mapping."
  37. #
  38. # << LOOK >> NOTE:
  39. # Compile and run 'kbdtest3.c' (see the source file for information)
  40. # to build a file containing the emitted sequences for each supported
  41. # function key.  Looking at the file, you will see it is a funckeymap
  42. # formatted keyboard description complete with the TERM terminal type.
  43. # I would appreciate your mailing me any files you
  44. # create describing non-SCO/non-ISC main console keyboards.
  45. #
  46. # If you like, compile the older 'kbdtest.c' module released with 3.0
  47. # and run it. Press any key you like and hex for the emitted
  48. # sequence will appear on the screen.  Press ^D to exit the program.
  49. #
  50. #-------------------------------------------------------------------------
  51. #+:EDITS:
  52. #:04-02-1995-04:58-wht@n4hgf-add con80x25 for later Linux
  53. #:03-21-1995-17:46-wht@n4hgf-add vt100 for old rterms which use ttype 'vt100'
  54. #:01-12-1995-15:18-wht@n4hgf-apply Andrew Chernov 8-bit clean+FreeBSD patch
  55. #:05-04-1994-04:39-wht@n4hgf-ECU release 3.30
  56. #:04-24-1994-05:17-wht@n4hgf-clean up+add entries for release 3.30
  57. #:03-13-1994-18:38-root@fep-add rterm entry
  58. #:11-22-1993-23:46-wht@n4hgf-hpux
  59. #:11-12-1993-10:51-wht@n4hgf-add Linux diffs
  60. #:09-10-1992-13:59-wht@n4hgf-ECU release 3.20
  61. #:08-22-1992-15:39-wht@n4hgf-ECU release 3.20 BETA
  62. #:05-14-1992-02:07-wht@n4hgf-make note of Metro Link R5 compatibility
  63. #:04-19-1992-01:37-wht@n4hgf-add ESIX SVR4 console
  64. #:10-03-1991-04:56-wht@n4hgf-add X386 1.1b Roell X11R4 xterm entry
  65. #:08-26-1991-05:06-wht@n4hgf2-add sun console and xterm entry
  66. #:08-10-1991-16:07-wht@n4hgf-add new Metro Link server entry
  67. #:05-06-1991-02:31-wht@n4hgf-add tandem terminal "ansi-terminal"
  68. #:05-05-1991-17:37-root@n4hgf-add ISC at386 tnx to dug@kd4nc
  69. #:05-02-1991-04:53-wht@n4hgf-document kbdtest3
  70. #:03-26-1991-00:00-wht@n4hgf-more Metro Link work
  71. #:03-19-1991-21:04-root@n4hgf-add Metro Link MetroX X11R4 xterm
  72. #:12-20-1990-23:50-wht@n4hgf-"correct" wyse entry
  73. #:12-18-1990-19:43-wht@n4hgf-add xterm and wy60
  74. #:12-02-1990-13:34-wht@n4hgf-creation
  75.  
  76. #+-------------------------------------------------------------------
  77. #   SCO multiscreen (and other ANSI for F1-F10, cursor keys)
  78. #--------------------------------------------------------------------
  79. sco
  80. ansi
  81. ansi43
  82. msdos
  83. dos
  84. dosansi
  85. test
  86. cons25w
  87. ansiw
  88. cons25
  89. ansis
  90. cons25-m
  91. ansis-mono
  92. cons50
  93. ansil
  94. cons50-m
  95. ansil-mono
  96. cons25r
  97. pc3r
  98. ibmpc3r
  99. cons25r-m
  100. pc3r-m
  101. ibmpc3r-mono
  102. cons50r
  103. cons50r-m
  104. cons25l1
  105. cons25l1-m
  106. cons50l1
  107. cons50l1-m
  108.     F1:F1:          esc [ M 
  109.     F2:F2:          esc [ N 
  110.     F3:F3:          esc [ O 
  111.     F4:F4:          esc [ P 
  112.     F5:F5:          esc [ Q 
  113.     F6:F6:          esc [ R 
  114.     F7:F7:          esc [ S 
  115.     F8:F8:          esc [ T 
  116.     F9:F9:          esc [ U 
  117.     F10:F10:        esc [ V 
  118.     F11:F11:        esc [ W 
  119.     F12:F12:        esc [ X 
  120.     Home:Home:      esc [ H 
  121.     End:End:        esc [ F 
  122.     PgUp:PgUp:      esc [ I 
  123.     PgDn:PgDn:      esc [ G 
  124.     CUU:CUU:        esc [ A 
  125.     CUL:CUL:        esc [ D 
  126.     CU5:CU5:        esc [ E 
  127.     CUR:CUR:        esc [ C 
  128.     CUD:CUD:        esc [ B 
  129.     Ins:Ins:        esc [ L
  130.     BkTab:BackTab:  esc [ Z
  131.  
  132. #+-------------------------------------------------------------------
  133. # ~wht/.Xdefaults on a networked SCO and Sun boxes
  134. # has these xterm translations: allows
  135. # me to be able to run ECU on n4hgf from 
  136. #
  137. #  a local xterm with the Roell X386 1.1b, Metro Link X11R4 and X11R5
  138. #    or SCO ODT servers or
  139. #  a remote Sparc IPX MIT X11R4 xterm running under
  140. #    news/open windows 2.0 or the MIT X11R4 server
  141. #
  142. # and vice versa on the Sun box
  143. #
  144. # This translation set demonstrates two different servers'
  145. # keyboard-to-keysym mappings being accommodated by one 'xterm'
  146. # funckey entry
  147. #
  148. #XTerm*VT100*Translations: #override\
  149. #     Shift <Key>Tab:  string(0x1b) string("[Z") \n \
  150. #     <Key>Insert:     string(0x1b) string("[L") \n \
  151. #     <Key>Home:       string(0x1b) string("[H") \n \
  152. #     <Key>End:        string(0x1b) string("[F") \n \
  153. #     <Key>Begin:      string(0x1b) string("[E") \n \
  154. #     <Key>F27:        string(0x1b) string("[H") \n \
  155. #     <Key>R13:        string(0x1b) string("[F") \n \
  156. #     <Key>F29:        string(0x1b) string("[I") \n \
  157. #     <Key>F31:        string(0x1b) string("[E") \n \
  158. #     <Key>F35:        string(0x1b) string("[G") \n
  159. #
  160. #--------------------------------------------------------------------
  161. xterm
  162.     BkTab:BkTab:    esc [ Z
  163.     CU5:CU5:        esc [ E
  164.     F1:F1:          esc [ 1 1 ~
  165.     F2:F2:          esc [ 1 2 ~
  166.     F3:F3:          esc [ 1 3 ~
  167.     F4:F4:          esc [ 1 4 ~
  168.     F5:F5:          esc [ 1 5 ~
  169.     F6:F6:          esc [ 1 7 ~
  170.     F7:F7:          esc [ 1 8 ~
  171.     F8:F8:          esc [ 1 9 ~
  172.     F9:F9:          esc [ 2 0 ~
  173.     F10:F10:        esc [ 2 1 ~
  174.     F11:F11:        esc [ 2 3 ~
  175.     F12:F12:        esc [ 2 4 ~
  176.     Ins:Ins:        esc [ 2 ~
  177.     Home:Home:      esc [ H
  178.     End:End:        esc [ F
  179.     PgUp:PgUp:      esc [ 5 ~
  180.     PgDn:PgDn:      esc [ 6 ~
  181.     CUU:CUU:        esc [ A
  182.     CUD:CUD:        esc [ B
  183.     CUL:CUL:        esc [ D
  184.     CUR:CUR:        esc [ C
  185.  
  186. #+-------------------------------------------------------------------
  187. #   Sun Sparc xterm using MIT X11R4 server (pl18)
  188. #
  189. # Place in .Xdefaults or whatever:
  190. #
  191. # XTerm*VT100*Translations: #override\
  192. #     Shift <Key>Tab:   string(0x1b) string("[Z") \n \
  193. #     <Key>F27:         string(0x1b) string("[H") \n \
  194. #     <Key>R13:         string(0x1b) string("[F") \n \
  195. #     <Key>F29:         string(0x1b) string("[I") \n \
  196. #     <Key>F31:         string(0x1b) string("[E") \n \
  197. #     <Key>F35:         string(0x1b) string("[G") \n \
  198. #     <Key>Insert:      string(0x1b) string("[L") \n \
  199. #
  200. # funckeymap for 'xterm' under SunOS
  201. # built by kbdtest3 1.02 Mon Aug 26 04:55:24 1991
  202. # keyboard parity required = even
  203. #--------------------------------------------------------------------
  204. xterm
  205.     BkTab:BkTab:    esc [ Z
  206.     CU5:CU5:        esc [ E
  207.     F1:F1:          esc [ 1 1 ~
  208.     F2:F2:          esc [ 1 2 ~
  209.     F3:F3:          esc [ 1 3 ~
  210.     F4:F4:          esc [ 1 4 ~
  211.     F5:F5:          esc [ 1 5 ~
  212.     F6:F6:          esc [ 1 7 ~
  213.     F7:F7:          esc [ 1 8 ~
  214.     F8:F8:          esc [ 1 9 ~
  215.     F9:F9:          esc [ 2 0 ~
  216.     F10:F10:        esc [ 2 1 ~
  217.     F11:F11:        esc [ 2 3 ~
  218.     F12:F12:        esc [ 2 4 ~
  219.     Ins:Ins:        esc [ L     # Ins generates Insert
  220.     Home:Home:      esc [ H     # Home generates F27
  221.     End:End:        esc [ F     # End generates R13
  222.     PgUp:PgUp:      esc [ I     # PgUp generates F29
  223.     PgDn:PgDn:      esc [ G     # PgDn generates F35
  224.     CUU:CUU:        esc [ A
  225.     CUD:CUD:        esc [ B
  226.     CUL:CUL:        esc [ D
  227.     CUR:CUR:        esc [ C
  228.  
  229. #+-------------------------------------------------------------------
  230. #   SCO ODT 2.0 console xterm (with translations shown below)
  231. #
  232. #XTerm*VT100*Translations: #override\
  233. #     Shift <Key>Tab:  string(0x1b) string("[Z") \n \
  234. #     <Key>KP_Insert:  string(0x1b) string("[L") \n \
  235. #     <Key>KP_Home:    string(0x1b) string("[H") \n \
  236. #     <Key>KP_End:     string(0x1b) string("[F") \n \
  237. #     <Key>KP_Prior:   string(0x1b) string("[I") \n \
  238. #     <Key>KP_Next:    string(0x1b) string("[G") \n \
  239. #     <Key>KP_Begin:   string(0x1b) string("[E") \n \
  240. #
  241. #--------------------------------------------------------------------
  242. xterm
  243.     BkTab:BkTab:    esc [ Z
  244.     CU5:CU5:        esc [ E
  245.     F1:F1:          esc [ 1 1 ~
  246.     F2:F2:          esc [ 1 2 ~
  247.     F3:F3:          esc [ 1 3 ~
  248.     F4:F4:          esc [ 1 4 ~
  249.     F5:F5:          esc [ 1 5 ~
  250.     F6:F6:          esc [ 1 7 ~
  251.     F7:F7:          esc [ 1 8 ~
  252.     F8:F8:          esc [ 1 9 ~
  253.     F9:F9:          esc [ 2 0 ~
  254.     F10:F10:        esc [ 2 1 ~
  255.     F11:F11:        esc [ 2 3 ~
  256.     F12:F12:        esc [ 2 4 ~
  257.     Ins:Ins:        esc [ L
  258.     Home:Home:      esc [ H
  259.     End:End:        esc [ F
  260.     PgUp:PgUp:      esc [ I
  261.     PgDn:PgDn:      esc [ G
  262.     CUU:CUU:        esc [ A
  263.     CUD:CUD:        esc [ B
  264.     CUL:CUL:        esc [ D
  265.     CUR:CUR:        esc [ C
  266.  
  267. #+-------------------------------------------------------------------
  268. #    Sun Console
  269. #
  270. # funckeymap for 'sun' (native console) under SunOS 4.1
  271. # built by kbdtest3 1.02 Mon Aug 26 16:21:57 1991
  272. # keyboard parity required = even
  273. #--------------------------------------------------------------------
  274. sun
  275. #   BkTab:BkTab:    ht                   # does not work
  276.     CU5:CU5:        esc [ 2 1 8 z
  277.     F1:F1:          esc [ 2 2 4 z
  278.     F2:F2:          esc [ 2 2 5 z
  279.     F3:F3:          esc [ 2 2 6 z
  280.     F4:F4:          esc [ 2 2 7 z
  281.     F5:F5:          esc [ 2 2 8 z
  282.     F6:F6:          esc [ 2 2 9 z
  283.     F7:F7:          esc [ 2 3 0 z
  284.     F8:F8:          esc [ 2 3 1 z
  285.     F9:F9:          esc [ 2 3 2 z
  286.     F10:F10:        esc [ 2 3 3 z
  287.     F11:F11:        esc [ 2 3 4 z
  288.     F12:F12:        esc [ 2 3 5 z
  289.     Ins:Ins:        esc [ 2 4 7 z
  290.     Home:Home:      esc [ 2 1 4 z
  291.     End:End:        esc [ 2 2 0 z
  292.     PgUp:PgUp:      esc [ 2 1 6 z
  293.     PgDn:PgDn:      esc [ 2 2 2 z
  294.     CUU:CUU:        esc [ A
  295.     CUD:CUD:        esc [ B
  296.     CUL:CUL:        esc [ D
  297.     CUR:CUR:        esc [ C
  298.  
  299. #+-------------------------------------------------------------------
  300. #   ISC 'AT386' keyboard
  301. #--------------------------------------------------------------------
  302. AT386
  303. at386
  304.     F1:F1:          esc O P 
  305.     F2:F2:          esc O Q 
  306.     F3:F3:          esc O R 
  307.     F4:F4:          esc O S 
  308.     F5:F5:          esc O T 
  309.     F6:F6:          esc O U 
  310.     F7:F7:          esc O V 
  311.     F8:F8:          esc O W 
  312.     F9:F9:          esc O X 
  313.     F10:F10:        esc O Y 
  314.     F11:F11:        esc O Z 
  315.     F12:F12:        esc O A 
  316.     Home:Home:      esc [ H 
  317.     End:End:        esc [ Y 
  318.     PgUp:PgUp:      esc [ V 
  319.     PgDn:PgDn:      esc [ U 
  320.     CUU:CUU:        esc [ A 
  321.     CUL:CUL:        esc [ D 
  322.     CU5:CU5:        esc [ G 
  323.     CUR:CUR:        esc [ C 
  324.     CUD:CUD:        esc [ B 
  325.     Ins:Ins:        esc [ @
  326.     BkTab:BackTab:  gs
  327.  
  328. #+-------------------------------------------------------------------
  329. #       ESIX SVR4 console
  330. #
  331. # funckeymap for 'AT386-M' under ESIX SVR4
  332. # built by kbdtest3 3.20 Thu Apr 16 23:16:22 1992
  333. # keyboard parity required = none
  334. # stty -a at kbdtest3 execution time:
  335. # speed 9600 baud; 
  336. # intr = DEL; quit = ^|; erase = ^h; kill = @;
  337. # eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
  338. # start = <undef>; stop = <undef>; susp = ^z; dsusp = <undef>;
  339. # rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
  340. # -parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -parext 
  341. # -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc 
  342. # ixon ixany -ixoff -imaxbel 
  343. # isig icanon -xcase echo echoe echok -echonl -noflsh 
  344. # -tostop -echoctl -echoprt -echoke -defecho -flusho -pendin -iexten 
  345. # opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 
  346. #
  347. # supplied by Joseph H Buehler <jhpb@sarto.budd-lake.nj.us>
  348. #+-------------------------------------------------------------------
  349. AT386-M
  350.     BkTab:BkTab:    gs 
  351.     CU5:CU5:        esc [ G
  352.     F1:F1:          esc O P
  353.     F2:F2:          esc O Q
  354.     F3:F3:          esc O R
  355.     F4:F4:          esc O S
  356.     F5:F5:          esc O T
  357.     F6:F6:          esc O U
  358.     F7:F7:          esc O V
  359.     F8:F8:          esc O W
  360.     F9:F9:          esc O X
  361.     F10:F10:        esc O Y
  362.     F11:F11:        esc O Z
  363.     F12:F12:        esc O A
  364.     Ins:Ins:        esc [ @
  365.     Home:Home:      esc [ H
  366.     End:End:        esc [ Y
  367.     PgUp:PgUp:      esc [ V
  368.     PgDn:PgDn:      esc [ U
  369.     CUU:CUU:        esc [ A
  370.     CUD:CUD:        esc [ B
  371.     CUL:CUL:        esc [ D
  372.     CUR:CUR:        esc [ C
  373.  
  374. #+-------------------------------------------------------------------
  375. #    Wyse 60 Native Mode (no reprogrammed function keys)
  376. #    (matching the keyboard tops I have, anyway)
  377. #
  378. # The following is for native mode Wyse 60 with no function keys
  379. # programmed for emitting alternate sequences.  This is such a
  380. # nice terminal in so many ways.  Too bad they cocked up the left
  381. # and down function keys by making them indistinguishable from
  382. # backspace and newline. You may wish to study the SCO /etc/termcap
  383. # 'wy60ak' entry for a way around this.
  384. #
  385. # Note there is a kludge in the terminal initialization code
  386. # to force a Wyse 60's *arrow keys* to use ANSI sequences.
  387. # This entry as shipped counts on this.  If you don't have SCO, try
  388. # the termcap entry in README.WY60
  389. #
  390. # If you really want to avoid this, comment out the IS strings below.
  391. #--------------------------------------------------------------------
  392. wy60
  393. wyse60
  394. wy60ak
  395. wyse60ak
  396. wy60-43
  397. wyse60-43
  398. wyse60ak-43
  399. wy60ak-43
  400.     IS:1:           esc Z 1 + esc [ A del
  401.     IS:2:           esc Z 1 , esc [ B del
  402.     IS:3:           esc Z 1 - esc [ D del
  403.     IS:4:           esc Z 1 . esc [ C del
  404.     IS:5:           esc Z 1 \ esc [ F del
  405.     IS:6:           esc Z 1 q esc [ L del 
  406.     F1:F1:          soh @ cr
  407.     F2:F1:          soh A cr
  408.     F3:F1:          soh B cr
  409.     F4:F1:          soh C cr
  410.     F5:F1:          soh D cr
  411.     F6:F1:          soh E cr
  412.     F7:F1:          soh F cr
  413.     F8:F1:          soh G cr
  414.     F9:F1:          soh H cr
  415.     F10:F10:        soh I cr
  416.     F11:F11:        soh J cr
  417.     F12:F12:        soh K cr
  418.     Home:Home:      rs
  419.     PgUp:PrevPg:    esc J
  420.     PgDn:NextPg:    esc K
  421.     BkTab:F14:      soh M cr
  422.     Ins:InsChar:    esc Q
  423.     End:Send:       esc 7
  424. #comment these out if you DO comment the IS strings
  425.    CUU:CUU:        esc [ A 
  426.    CUL:CUL:        esc [ D 
  427.    CU5:CU5:        esc [ E 
  428.    CUR:CUR:        esc [ C 
  429.    CUD:CUD:        esc [ B 
  430. #   Home:Home:      esc [ H 
  431. #   End:End:        esc [ F 
  432. #uncomment the if you DO NOT comment the IS strings
  433. #    CUU:CUU:        vt
  434. #    CUR:CUR:        ff
  435.  
  436. #+-------------------------------------------------------------------
  437. #    Tandem Integrity S2
  438. #
  439. # From: rootk@tdmsou (Admin) [John Dashner]
  440. # Date: Mon, 6 May 91 2:23:56 EDT
  441. # funckeymap definition for TERM='ansi-tandem'
  442. # built by kbdtest3.c Mon May  6 02:17:13 1991
  443. #--------------------------------------------------------------------
  444. ansi-tandem
  445.     BkTab:BkTab:    esc [ Z
  446.     CU5:CU5:        esc [ T
  447.     F1:F1:          soh @ cr 
  448.     F2:F2:          soh A cr 
  449.     F3:F3:          soh B cr 
  450.     F4:F4:          soh C cr 
  451.     F5:F5:          soh D cr 
  452.     F6:F6:          soh E cr 
  453.     F7:F7:          soh F cr 
  454.     F8:F8:          soh G cr 
  455.     F9:F9:          soh H cr 
  456.     F10:F10:        soh I cr 
  457.     F11:F11:        soh J cr 
  458.     F12:F12:        soh K cr 
  459.     Ins:Ins:        esc [ @
  460.     Home:Home:      esc [ H
  461.     End:End:        esc [ 2 4 H
  462.     PgUp:PgUp:      esc [ V
  463.     PgDn:PgDn:      esc [ U
  464.     CUU:CUU:        esc [ A
  465.     CUD:CUD:        esc [ B
  466.     CUL:CUL:        esc [ D
  467.     CUR:CUR:        esc [ C
  468.  
  469. #+-----------------------------------------------------------------------------
  470. #  "versatile"  xterm - an example (works for me) -- wht
  471. #------------------------------------------------------------------------------
  472. # funckeymap definition for TERM='xterm' 
  473. # ODT 2.0 + Roell x386 1.1b + Sun OW2 + Sun MIT combined
  474. # built by kbdtest3 3.21 Wed Sep 16 12:58:06 1992
  475. # keyboard parity required = even
  476. # stty -a at kbdtest3 execution time:
  477. # speed 9600 baud;   ispeed 9600 baud;   ospeed 9600 baud; 
  478. # line = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@; 
  479. # swtch = ^@;susp = ^Z;start = ^Q;stop = ^S;
  480. # parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crtsfl -ctsflow -rtsflow 
  481. # -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc 
  482. # ixon -ixany -ixoff 
  483. # isig icanon -xcase echo echoe echok -echonl -noflsh -iexten -tostop -xclude 
  484. # opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel 
  485. # -isscancode 
  486. #------------------------------------------------------------------------------
  487. # stock OW2/nEwS doesn't include F11 or F12; xev for both:
  488. # state 0x0, keycode 16 (keysym 0x1005ff10, (no name)), same_screen YES,
  489. # XLookupString gives 0 characters:  ""
  490. # (keycode 16 for F11, 18 for F12)
  491. #------------------------------------------------------------------------------
  492. # XTerm*VT100*Translations: #override\
  493. #      <Key>Home:       string(0x1b) string("[H") \n \
  494. #      <Key>KP_Home:    string(0x1b) string("[H") \n \
  495. #      <Key>F27:        string(0x1b) string("[H") \n \
  496. #      <Key>End:        string(0x1b) string("[F") \n \
  497. #      <Key>KP_End:     string(0x1b) string("[F") \n \
  498. #      <Key>R13:        string(0x1b) string("[F") \n \
  499. #      <Key>Prior:      string(0x1b) string("[I") \n \
  500. #      <Key>F29:        string(0x1b) string("[I") \n \
  501. #      <Key>Next:       string(0x1b) string("[G") \n \
  502. #      <Key>KP_Next:    string(0x1b) string("[G") \n \
  503. #      <Key>F35:        string(0x1b) string("[G") \n \
  504. #      <Key>KP_Begin:   string(0x1b) string("[E") \n \
  505. #      <Key>Begin:      string(0x1b) string("[E") \n \
  506. #      <Key>F31:        string(0x1b) string("[E") \n \
  507. #      <Key>KP_Insert:  string(0x1b) string("[L") \n \
  508. #      <Key>Insert:     string(0x1b) string("[L") \n \
  509. #      Shift <Key>Tab:  string(0x1b) string("[Z") \n 
  510. #
  511. #--------------------------------------------------------------------
  512. xterm
  513.     BkTab:BkTab:    esc [ Z
  514.     CU5:CU5:        esc [ E
  515.     F1:F1:          esc [ 1 1 ~
  516.     F2:F2:          esc [ 1 2 ~
  517.     F3:F3:          esc [ 1 3 ~
  518.     F4:F4:          esc [ 1 4 ~
  519.     F5:F5:          esc [ 1 5 ~
  520.     F6:F6:          esc [ 1 7 ~
  521.     F7:F7:          esc [ 1 8 ~
  522.     F8:F8:          esc [ 1 9 ~
  523.     F9:F9:          esc [ 2 0 ~
  524.     F10:F10:        esc [ 2 1 ~
  525.     F11:F11:        esc [ 2 3 ~
  526.     F12:F12:        esc [ 2 4 ~
  527.     Ins:Ins:        esc [ L
  528.     Home:Home:      esc [ H
  529.     End:End:        esc [ F
  530.     PgUp:PgUp:      esc [ I
  531.     PgDn:PgDn:      esc [ G
  532.     CUU:CUU:        esc [ A
  533.     CUD:CUD:        esc [ B
  534.     CUL:CUL:        esc [ D
  535.     CUR:CUR:        esc [ C
  536.  
  537. #+---------------------------------------------------------------------
  538. #    Linux console
  539. #----------------------------------------------------------------------
  540. console
  541. con80x25
  542.     F1:F1:          esc [ [ A
  543.     F2:F2:          esc [ [ B
  544.     F3:F3:          esc [ [ C
  545.     F4:F4:          esc [ [ D
  546.     F5:F5:          esc [ [ E
  547.     F6:F6:          esc [ 1 7 ~
  548.     F7:F7:          esc [ 1 8 ~
  549.     F8:F8:          esc [ 1 9 ~
  550.     F9:F9:          esc [ 2 0 ~
  551.     F10:F10:        esc [ 2 1 ~
  552.     F11:F11:        esc [ 2 8 ~
  553.     F12:F12:        esc [ 2 9 ~
  554.     Home:Home:      esc [ 1 ~
  555.     End:End:        esc [ 4 ~
  556.     PgUp:PgUp:      esc [ 5 ~
  557.     PgDn:PgDn:      esc [ 6 ~
  558.     CUU:CUU:        esc [ A
  559.     CUL:CUL:        esc [ D
  560.     CU5:CU5:        esc [ G
  561.     CUR:CUR:        esc [ C
  562.     CUD:CUD:        esc [ B
  563.     Ins:Ins:        esc [ 2 ~
  564.  
  565. #+-----------------------------------------------------------------------------
  566. #  H P - U X  hpterm
  567. #------------------------------------------------------------------------------
  568. # Date: Mon, 29 Nov 1993 14:09:53 -0800 (PST)
  569. # From: "Robert E. Laughlin" <bel@nosc.mil>
  570. # funckeymap for 'hpterm' under HP-UX
  571. # built by kbdtest3 3.21 Wed Nov 24 10:26:29 1993
  572. # keyboard parity required = even
  573. # stty -a at kbdtest3 execution time:
  574. # speed 9600 baud; line = 0; susp = ^Z; dsusp = ^@
  575. # rows = 25; columns = 80
  576. # intr = ^C; quit = ^\; erase = ^H; kill = ^U; swtch = ^@
  577. # eof = ^D; eol = ^@; min = 4; time = 0; stop = ^S; start = ^Q
  578. # parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts 
  579. # -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc 
  580. # ixon -ixany ixoff -rtsxoff -ctsxon -ienqak 
  581. # isig icanon iexten -xcase echo echoe echok -echonl -noflsh 
  582. # opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop 
  583. hpterm
  584. # BkTab: dead key and no reasonable alternate
  585. #    CU5:CU5:        5
  586. # the above entry is suspect
  587.     F1:F1:          esc p cr 
  588.     F2:F2:          esc q cr 
  589.     F3:F3:          esc r cr 
  590.     F4:F4:          esc s cr 
  591.     F5:F5:          esc t cr 
  592.     F6:F6:          esc u cr 
  593.     F7:F7:          esc v cr 
  594.     F8:F8:          esc w cr 
  595. # F9: dead key and no reasonable alternate
  596. # F10: dead key and no reasonable alternate
  597. # F11: dead key and no reasonable alternate
  598. # F12: dead key and no reasonable alternate
  599. # Ins: dead key and no reasonable alternate
  600.     Home:Home:      soh
  601.     End:End:        enq
  602. # PgUp: dead key and no reasonable alternate
  603. # PgDn: dead key and no reasonable alternate
  604. # CUU: dead key and no reasonable alternate
  605. # CUD: dead key and no reasonable alternate
  606. # CUL: dead key and no reasonable alternate
  607. # CUR: dead key and no reasonable alternate
  608.  
  609. #+-----------------------------------------------------------------------------
  610. # funckeymap for 'rterm' for WHT
  611. #------------------------------------------------------------------------------
  612. rterm
  613. vt100 # not really -- still for wht, but a start
  614.     F1:F1:          esc O q
  615.     F2:F2:          esc O r 
  616.     F3:F3:          esc O s 
  617.     F4:F4:          esc O t 
  618.     F5:F5:          esc O u 
  619.     F6:F6:          esc O v 
  620.     F7:F7:          esc O w 
  621.     F8:F8:          esc O x 
  622.     F9:F9:          esc O y 
  623.     F10:F10:        esc O z 
  624. #   F11:F11:
  625. #   F12:F12:
  626.     Home:Home:      esc [ H 
  627.     End:End:        esc [ F 
  628.     PgUp:PgUp:      esc [ I 
  629.     PgDn:PgDn:      esc [ G 
  630.     CUU:CUU:        esc [ A 
  631.     CUL:CUL:        esc [ D 
  632.     CU5:CU5:        esc [ E 
  633.     CUR:CUR:        esc [ C 
  634.     CUD:CUD:        esc [ B 
  635.     Ins:Ins:        esc [ L
  636.     BkTab:BackTab:  esc [ Z
  637.  
  638. #+-----------------------------------------------------------------------------
  639. #   N e t B S D  console (pc3)
  640. #------------------------------------------------------------------------------
  641. # From: Daniel Harris <daniel@reubio.apana.org.au>
  642. # Date: Fri, 8 Apr 1994 23:18:27 +1000 (EST)
  643. # Here's the funckeymap entries for the NetBSD console,
  644. # and an arbitrary xterm.
  645. #------------------------------------------------------------------------------
  646. # funckeymap for 'pc3' under NetBSD OS
  647. # From: Daniel Harris <daniel@reubio.apana.org.au>
  648. # built by kbdtest3 3.30 Sun Mar 20 14:56:43 1994
  649. # keyboard parity required = even
  650. # stty -a at kbdtest3 execution time:
  651. # speed 1200 baud; 0 rows; 0 columns;
  652. # lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
  653. #     -echoprt -altwerase -noflsh -tostop -mdmbuf -flusho pendin
  654. #     -nokerninfo -extproc
  655. # iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
  656. #     brkint -inpck -ignpar -parmrk
  657. # oflags: opost onlcr oxtabs
  658. # cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts
  659. # cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
  660. #     eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
  661. #     quit = ^\; reprint = ^R; start = ^Q; status = <undef>; stop = ^S;
  662. #     susp = ^Z; werase = ^W;
  663. pc3
  664. #    BkTab:BkTab:    del
  665.     CU5:CU5:        esc [ E
  666.     F1:F1:          esc [ M
  667.     F2:F2:          esc [ N
  668.     F3:F3:          esc [ O
  669.     F4:F4:          esc [ P
  670.     F5:F5:          esc [ Q
  671.     F6:F6:          esc [ R
  672.     F7:F7:          esc [ S
  673.     F8:F8:          esc [ T
  674.     F9:F9:          esc [ U
  675.     F10:F10:        esc [ V
  676.     F11:F11:        esc [ W
  677.     F12:F12:        esc [ X
  678.     Ins:Ins:        esc [ L
  679.     Home:Home:      esc [ H
  680.     End:End:        esc [ F
  681.     PgUp:PgUp:      esc [ I
  682.     PgDn:PgDn:      esc [ G
  683.     CUU:CUU:        esc [ A
  684.     CUD:CUD:        esc [ B
  685.     CUL:CUL:        esc [ D
  686.     CUR:CUR:        esc [ C
  687.  
  688. #------------------------------------------------------------------------------
  689. #   N e t B S D xterm -- experimental
  690. #------------------------------------------------------------------------------
  691. # funckeymap for 'xterm' under NetBSD OS
  692. # From: Daniel Harris <daniel@reubio.apana.org.au>
  693. # built by kbdtest3 3.30 Sun Mar 20 15:06:20 1994
  694. # keyboard parity required = even
  695. # stty -a at kbdtest3 execution time:
  696. # speed 9600 baud; 55 rows; 80 columns;
  697. # lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
  698. #     -echoprt -altwerase -noflsh -tostop -mdmbuf -flusho pendin
  699. #     -nokerninfo -extproc
  700. # iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
  701. #     brkint -inpck -ignpar -parmrk
  702. # oflags: opost onlcr -oxtabs
  703. # cflags: cread cs7 parenb -parodd hupcl -clocal -cstopb -crtscts
  704. # cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
  705. #     eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
  706. #     quit = ^\; reprint = ^R; start = ^Q; status = <undef>; stop = ^S;
  707. #     susp = ^Z; werase = ^W;
  708. #------------------------------------------------------------------------------
  709. # "The translations required for ECU in xterms to work are provided 
  710. # at the end of the file.  (Of course, X support won't work with
  711. # stock 0.9!)" -- Daniel Harris <daniel@reubio.apana.org.au>
  712. #- required X resources -------------------------------------------------------
  713. #XTerm*VT100*Translations: #override\
  714. #        Shift <Key>Tab:  string(0x1b) string("[Z") \n \
  715. #        <Key>Home:    string(0x1b) string("[H") \n \
  716. #        <Key>End:     string(0x1b) string("[F") \n \
  717. #------------------------------------------------------------------------------
  718. netbsd-xterm
  719.     BkTab:BkTab:    esc [ Z
  720.     CU5:CU5:        esc [ nul
  721.     F1:F1:          esc [ 1 1 ~
  722.     F2:F2:          esc [ 1 2 ~
  723.     F3:F3:          esc [ 1 3 ~
  724.     F4:F4:          esc [ 1 4 ~
  725.     F5:F5:          esc [ 1 5 ~
  726.     F6:F6:          esc [ 1 7 ~
  727.     F7:F7:          esc [ 1 8 ~
  728.     F8:F8:          esc [ 1 9 ~
  729.     F9:F9:          esc [ 2 0 ~
  730.     F10:F10:        esc [ 2 1 ~
  731.     F11:F11:        esc [ 2 3 ~
  732.     F12:F12:        esc [ 2 4 ~
  733.     Ins:Ins:        esc [ 2 ~
  734.     Home:Home:      esc [ H
  735.     End:End:        esc [ F
  736.     PgUp:PgUp:      esc [ 5 ~
  737.     PgDn:PgDn:      esc [ 6 ~
  738.     CUU:CUU:        esc [ A
  739.     CUD:CUD:        esc [ B
  740.     CUL:CUL:        esc [ D
  741.     CUR:CUR:        esc [ C
  742.  
  743. #+-------------------------------------------------------------------
  744. #   SCO ODT 1.0/1.1 console xterm (as released, unmodified)
  745. #--------------------------------------------------------------------
  746. xterm
  747.     F1:F1:          esc [ 1 1 ~
  748.     F2:F2:          esc [ 1 2 ~
  749.     F3:F3:          esc [ 1 3 ~
  750.     F4:F4:          esc [ 1 4 ~
  751.     F5:F5:          esc [ 1 5 ~
  752.     F6:F6:          esc [ 1 7 ~
  753.     F7:F7:          esc [ 1 8 ~
  754.     F8:F8:          esc [ 1 9 ~
  755.     F9:F9:          esc [ 2 0 ~
  756.     F10:F10:        esc [ 2 1 ~
  757. #   F11:F11:        esc [ 2 3 ~   # decommitted to provide a CU5
  758. #   F12:F12:        esc [ 2 4 ~   # decommitted to provide a BkTab
  759.     Home:Home:      esc [ 8 ~
  760.     End:End:        esc [ 7 ~
  761.     PgUp:PgUp:      esc [ 5 ~
  762.     PgDn:PgDn:      esc [ 6 ~
  763.     CUU:CUU:        esc [ A 
  764.     CUL:CUL:        esc [ D 
  765. #   CU5:CU5:        esc [ 8 ~     # same as HOME unfortunately
  766.     CU5:F11:        esc [ 2 3 ~
  767.     CUR:CUR:        esc [ C 
  768.     CUD:CUD:        esc [ B 
  769.     Ins:Ins:        esc [ 2 ~
  770. #   BkTab:BackTab:  tab           # same as TAB unfortunately
  771.     BkTab:F12:      esc [ 2 4 ~
  772.  
  773.  
  774.  
  775.